import os
'''
#打印出来的单位是B（字节）
file_path = os.path.join(os.getcwd(), "01-exercise/01-20/English_paper.txt")
print("all size of dir", os.path.getsize(file_path)/1024, "KB")
'''
sum_size = 0
for file in os.listdir("."):
   if os.path.isfile(file):
     sum_size += os.path.getsize(file)
#打印的是KB
print("all size of dir", sum_size/1024, "KB")